home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktime vr / vrscript / feature files / vr3dtexture.h < prev    next >
Encoding:
Text File  |  2000-09-28  |  1.3 KB  |  48 lines

  1. //////////
  2. //
  3. //    File:        VR3DTexture.c
  4. //
  5. //    Contains:    Support for adding a QuickTime movie or a picture as a texture on a QD3D object.
  6. //
  7. //    Written by:    Tim Monroe
  8. //                Parts modeled on BoxMoov code by Rick Evans and Robert Dierkes.
  9. //
  10. //    Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  11. //
  12. //    Change History (most recent first):
  13. //
  14. //       <1>         12/16/96    rtm        first file
  15. //       
  16. //////////
  17.  
  18. #pragma once
  19.  
  20. #include <ImageCompression.h>
  21. #include <Movies.h>
  22. #include <QDOffscreen.h>
  23.  
  24. #include <QD3D.h>
  25. #include <QD3DGroup.h>
  26. #include <QD3DStorage.h>
  27.  
  28. // constants
  29.  
  30. #define kVR_TextureMovieVolAngle    180.0    // volume angle for all texture-mapped movies
  31.  
  32.  
  33. // data structures
  34.  
  35. typedef struct {
  36.     TQ3StoragePixmap            fStoragePixmap;        // the QD3D pixmap
  37.     GWorldPtr                    fpGWorld;            // the offscreen buffer into which the movie or picture is drawn
  38.     Movie                        fMovie;                // the movie source for animated textures
  39.     MediaHandler                fMediaHandler;        // the sound media handler for animated textures
  40. } Texture, *TexturePtr, **TextureHdl;
  41.  
  42.  
  43. // function prototypes
  44.  
  45. TextureHdl            VR3DTexture_New (char *thePathName, Boolean isTextureMovie);
  46. Boolean                VR3DTexture_Delete (TextureHdl theTexture);
  47. TQ3Status            VR3DTexture_AddToGroup (TextureHdl theTexture, TQ3GroupObject theGroup);
  48. Boolean                VR3DTexture_NextFrame (TextureHdl pAnimTxtr);